<div class= "full_width">
	<h3><?php __('Danh sách thành viên nhóm: '. $group['Group']['name']);?></h3>
	<p>
		<?php
		echo $this->Paginator->counter(array(
		'format' => __('Có tổng cộng %count% thành viên', true)
		));
		?>	
	</p>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>STT</th>
			<th><?php echo $this->Paginator->sort('Tên tài khoản','username');?></th>
			<th>Ngày tham gia</th>
			<th>Số bài viết</th>
			<th>Số bình luận</th>
			<?php if ( $group['Group']['id'] != 1): ?><th>Gỡ bỏ</th><?php endif; ?>
	</tr>
	<?php
	$i = 1;
	foreach ($users as $user):	?>
	<tr>
		<td><?php echo $i++; ?></td>
		<td><?php echo $html->link($user['User']['username'], array('controller' => 'users', 'action' => 'edit', $user['User']['id'])); ?>&nbsp;</td>
		<td><?php echo $user['User']['created']; ?></td>
		<td><?php echo count($user['Post']); ?></td>
		<td><?php echo count($user['Comment']); ?></td>
		<?php if ( $group['Group']['id'] != 1): ?><td><?php echo $this->Html->link($html->image('admin/icons/delete.png'), array('controller' => 'users', 'action' => 'delete', $user['User']['id'], 'admin' => 1), array('escape' => false, 'title' => 'Xóa thành viên khỏi nhóm')); ?></td><?php endif; ?>
	</tr>
	<?php endforeach; ?>
	</table>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
		| 	
		<?php echo $this->Paginator->numbers();?>
		|
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>

